8b7b13021bc3ec5a866a465b996af101f4e44500,src/main/java/org/thymeleaf/engine/ThrottledTemplateWriter.java,ThrottledTemplateWriter,write,#String#number#number#,153

Before Change


            overflow(str, off, len);
            return;
        }
        if (this.unlimited || this.limit >= len) {
            this.writer.write(str, off, len);
            if (!this.unlimited) {
                this.limit -= len;
            }
            return;
        }
        this.writer.write(str, off, this.limit);
        overflow(str, off + this.limit, (len - this.limit));
        this.limit = 0;
    }

After Change


            overflow(str, off, len);
            return;
        }
        if (this.unlimited || this.limit > len) {
            this.writer.write(str, off, len);
            if (!this.unlimited) {
                this.limit -= len;
            }
            return;
        }
        this.writer.write(str, off, this.limit);
        if (this.limit < len) {
            overflow(str, off + this.limit, (len - this.limit));
        }
        this.limit = 0;
        this.flowController.stopProcessing = true;